<%@ page import="com.ktjy.pojo.SysUser" %>
<%@ page import="com.ktjy.util.Constants" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<div>${user.realName}欢迎您!</div>

<hr>
<table border="1px">
    <c:forEach items="${list}" var="u">
        <tr>
            <td>${u.id}</td>
            <td>${u.account}</td>
            <td>${u.realName}</td>
            <td>${u.password}</td>
            <td>${u.birthday}</td>
            <td><fmt:formatDate value="${u.birthday}" pattern="yyyy-MM-dd"/></td>
        </tr>
    </c:forEach>
</table>
<div><a href="${pageContext.request.contextPath}/user/add">添加</a></div>
</body>
</html>
